@extends('layout.layer')

@section('layout.content')
  <div class="row">
    @foreach($attachments as $att)
    <div class="col-xs-12">
      <a href="#" class="thumbnail"><img src="{{$att->file}}" alt="..."></a>
    </div>
    @endforeach

    <div class="col-xs-12 center">
      <button type="button" class="btn btn-primary">
        <i class="ace-icon fa fa-check"></i>
        确定
      </button>
    </div>
@stop

@section('javascript')

  <script src="//cdn.bootcss.com/jquery-validate/1.19.1/jquery.validate.min.js"></script>
  <script src="{{URL::asset('assets/js/jquery-validate-methods.js')}}"></script>
  <script src="//cdn.bootcss.com/jqueryui/1.12.1/jquery-ui.min.js"></script>


  <script type="text/javascript">
      $(function () {
        $('.btn-primary').on('click', function(e) {
            //parent.location.reload();
            //var index = parent.layer.getFrameIndex(window.name);
            parent.layer.close(parent.layer.index);
          });
      });
  </script>
@stop